<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>右键菜单树</title>
<link href="../../css/bootstrap.css" rel="stylesheet" media="screen">
<link href="../../common/style.css" rel="stylesheet" media="screen">
<link href="../../common/main.css" rel="stylesheet" media="screen">
<link href="../../css/font-awesome.css" rel="stylesheet"> 
<link href="../../css/koala_tree.css" rel="stylesheet"> 

<script src="../../js/jquery.js" type="text/javascript"></script>
<script src="../../js/bootstrap.js" type="text/javascript" ></script>
<script src="../../lib/Koala_Tree.js" type="text/javascript"></script>
</head>
<body>
	<div class="container">
		<div class="tree" id="ex-tree-ajax" style="height: 600px;"></div>
	</div>
	<script type="text/javascript">
		$(function(){
			var data = [{"parentId":"root","menu":{"id":"001","title":"权限管理","href":"#"}}];
			
			var dataSourceTree = {
				data: data,
				delay: 400
			};
			$('#ex-tree-ajax').tree({
				//dataSource: dataSourceTree,
				loadingHTML: '<div class="static-loader">Loading...</div>',
				multiSelect: false,
				cacheItems: true,
				draggable:	false,
				ajaxUrl: "./treeData.js"
			});
		})
	</script>

</body>
</html>